import request from '/@/utils/request';

export default{
	register(user: object) {
		return request({
			url: '/upm/register',
			method: 'post',
			data: user,
		});
	},
	login(user: object) {
		return request({
			url: '/upm/login',
			method: 'post',
			data: user,
		});
	},
	signOut(params: object) {
		return request({
			url: '/user/signOut',
			method: 'post',
			data: params,
		});
	},
	changePassword(changePasswordForm: object) {
		return request({
			url: '/upm/changePassword',
			method: 'post',
			data: changePasswordForm,
		});
	}

}
